<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2018-05-07
  Time: 20:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>会员管理</title>
    <link href="/statics/css/bootstrap.css" rel="stylesheet">
    <link rel="stylesheet" href="/statics/css/plugins/bootstrap-table/bootstrap-table.min.css">
    <link rel="stylesheet" href="/statics/css/plugins/sweetalert/sweetalert.css">
    <link rel="stylesheet" href="/statics/css/plugins/datapicker/datepicker3.css">
    <%--<link href="/statics/css" rel="stylesheet">--%>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-3">
            <button class="btn btn-success" onclick="javascript:openAddMember();">新增会员</button>
        </div>
        <div class="col-md-3">
            状态:
            <select id="state" onchange="refresh();">
                <option value="0">全部</option>
                <c:forEach items="${stateList}" var="state">
                    <option value="${state.id}">${state.name}</option>
                </c:forEach>
            </select>
        </div>
        <div class="col-md-3">
            等级:
            <select id="level"  onchange="refresh();" name="level">
                <option value="0">全部</option>
                <c:forEach items="${levelList}" var="level">
                    <option value="${level.id}">${level.name}</option>
                </c:forEach>
            </select>
        </div>
        <div class="col-md-3">
            <input type="text" id="name" placeholder="按会员姓名搜索"/>
            <button class="btn btn-success" onclick="refresh();">搜索</button>
        </div>
    </div>
</div>

<table id="member-table"></table>
<%--新增会员--%>
<div id="add-member-modal" class="modal fade" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">新增会员</h4>
            </div>
            <div class="modal-body"></div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" onclick="javascript:submitAddMember();">提交</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div id="update-member-modal" class="modal fade" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">修改会员信息</h4>
            </div>
            <div class="modal-body"></div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" onclick="javascript:submitChangeMember();">提交</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

<script src="/statics/js/jquery-3.2.1.min.js"></script>
<script src="/statics/js/bootstrap.js"></script>
<script src="/statics/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/statics/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="/statics/js/plugins/sweetalert/sweetalert.min.js"></script>
<script src="/statics/js/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="/statics/js/memberManage.js"></script>
</body>
</html>
